<template>
  <div >
       <div class="head_box">    
                   <span class="back_box" @click="urlClcik(url)">&lt;返回</span>
                    <span class="head_title">首页 </span>
                    <span class="head_title">&gt;民生保障</span>
                    <span class="head_title">&gt;劳有所得</span>
                    <span class="head_text">&gt;推动更加充分更高质量就业</span>
                    <span class="head_text_icon">预警</span>
                    <span class="head_stjy">牵头单位：省人力社保厅</span>
                    <div class="ndmb_box" v-if="showtabNd"><div class="ndmb_title">年度目标</div><div class="ndmb_right_box">建设公共就业服务平台，鼓励支持多渠道灵活就业，重点做好高校毕业生、退役军人、残疾人等群体就业工作，确保零就业家庭动态清零。</div></div>
                    <span class="head_cenetr_box" :class="[showtabNd?'jt_icon_top':'jt_icon']" @click="clickndmb()">年度目标<span class="head_center_icon_box"></span></span>
      </div>
  </div>
</template>

<script>
export default {
  name: "header",
  props: {
      option: Object,
      data: Object,
  },
 data() {
    return {
         url:"https://dgov-integrate-task-test.zj.gov.cn:90/msbz/msbz/",
      headerDatas:'',
    showtabNd:true,
    };
  },
  methods: {
    init() {
      this.headerDatas=this.data||{}
    },
     clickndmb(){
       this.showtabNd=!this.showtabNd;
    },
     urlClcik(url){
      if(url){
        window.location.href=url;
      }
    }
  },
 mounted() {
    this.init();
  },
  watch: {
    option: {
      handler(val, oldval) {
        if(val) this.init();
      },
      deep: true,
      immediate: true,
    },
    data: {
      handler(val, oldval) {
        if(val) this.init();
      },
      deep: true,
    },
  
   
   
  },
  
};
</script>

<style scoped>
.echarts_box {
  width: 100%;
  height:100%;
}
/* 标题开始 */
.head_box{
  padding-left: 20px;
  width: 100%;
  min-height:68px;
  font-size: 16px;
  padding-top: 10px;
  /* line-height:47px; */
  background-color: #fff;
  position: relative;
  border-radius:8px;
  margin-bottom: 20px;
  box-shadow:0 0 10px #eee
}
  .head_stjy::before{
     content:"";
     width: 14px;
     height: 14px;
     position: absolute;
     top: 0;
     bottom: 0;
     left: -17px;
     margin: auto;
     background: url(../assets/img/head.png) no-repeat;
     background-size: 100% 100%;
  }
  .head_stjy{
    float: right;
    padding-right: 20px;
    position: relative;
  }
  .back_box{
      display: inline-block;
      width: 56px;
      height: 24px;
      margin-right: 3px;
      line-height: 22px;
      text-align: center;
      background: #EDF4FF;
      border: 1px solid #8ACDFE;
      border-radius: 2px;
      color:#8ACDFE;
      cursor: pointer;
  }
  .head_box>span{
      display: inline-block;
  }
 
 .head_box .head_title{
     color:#666666 
 }
  .head_text{
      color:#000;
      font-size: 18px;
      font-weight: bold;
  }
  .head_cenetr_box{
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      width: 166px;
      height:26px ;
      font-size: 16px;
      line-height: 26px;
      text-align: center;
      background: #F2F3F5;
    border-radius: 153px 153px 0 0;
    color:#666666 ;
    cursor: pointer;
  }
  .head_text_icon{
      position: relative;
      background: rgba(255,107,0,0.10);
      border: 1px solid #FF6B00;
      color:#FF6B00 ;
      width: 56px;
      height: 24px;
      font-size: 14px;
      line-height: 22px;
      padding-left: 19px;
      margin-left:4px
  }
  .head_text_icon::before{
      content:" ";
      width: 18px;
      height: 18px;
      position: absolute;
      top: 1px;
      bottom:0;
      left: 2px;
      vertical-align: middle;
     background: url(../assets/img/yujing.png) no-repeat;
     background-size: 100% 100%;
     border-radius:2px;
     
  }
  .head_center_icon_box{
      position: absolute;
      color:#666666 ;
      width: 20px;
      height: 18px;
      background-color: red;
      transform:rotateX(90deg);
      -webkit-transform:rotateX(90deg);/* Safari and Chrome */
      -moz-transform:rotateX(90deg); /* Firefox */
      
  }
  .jt_icon{
    position: absolute;
  }
  .jt_icon::before{
    content:" ";
    width: 16px;
    height: 16px;
    position: absolute;
    right: 32px;
    bottom:0;
    top: 0;
    margin: auto;
    background: url(../assets/img/bottom_jt.svg) no-repeat;
    background-size: 100% 100%;
  }
  .jt_icon_top{
    position: absolute;
  }
  .jt_icon_top::before{
    content:" ";
    width: 16px;
    height: 16px;
    position: absolute;
    right: 32px;
    bottom:0;
    top: 0;
    margin: auto;
    background: url(../assets/img/top_jt.svg) no-repeat;
    background-size: 100% 100%;
  }
  .ndmb_box{
    display: flex;
   position: relative;
   border-top: 1px solid #EEEEEE;
   margin-top: 8px;
   padding-bottom: 40px;
   padding-top: 10px;
  }
  .ndmb_right_box{
    border-left: 1px solid #EEEEEE;
    margin-left: 8px;
    padding-left: 8px;
  }
  .ndmb_title{
    font-size: 16px;
    color: #1492FF;
    padding-left: 25px;
    position: relative;
  }
  .ndmb_title::before{
    content:"";
    width: 24px;
    height: 24px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background: url(../assets/img/ndmb.svg) no-repeat;
    background-size: 100% 100%;
  }
  /* .head_stjy::before{
      content: " ";
      width: ;
  } */
  /* 头部结束 */
/* 头部结束 */
</style>